<?php cekAkses($_SESSION[akses],"DD-3-1");?>
<script type="text/javascript">
$(document).ready(function() {

	$().ajaxStart(function() {
		$('#loading').show();
		$('#result').hide();
	}).ajaxStop(function() {
		$('#loading').hide();
		$('#result').fadeIn('slow');
	});

	$('#add').submit(function() {
		$.ajax({
			type: 'POST',
			url: $(this).attr('action'),
			data: $(this).serialize(),
			success: function(data) {
				$('#result').html(data);
			}
		})
		return false;
	});
  $('#result').click(function(){
  $(this).hide();
  });
})
$(function()
  {
      $('#keterangan').wysiwyg();
  });
</script>
<div id="loading" style="display:none;"><img src="images/loading.gif" alt="loading..." /></div>
<div id="result" style="display:none;"></div>
<h1>Tambah Golongan Aset  </h1>
<form action="proses/golonganaset.php?act=add" method="POST" name="add" class="niceform" id="add">
  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF" class="datatable">
    <tr>
      <td width="21%" align="right">Golongan*  : </td>
      <td width="79%"><label>
        <input name="golongan" type="text" id="golongan" size="30" maxlength="100"/>
      </label></td>
    </tr>
    <tr valign="top">
      <td align="right">Umur* : </td>
      <td><label>
        <input name="umur" type="text" id="umur" size="10" maxlength="3" />
      tahun (number only) </label></td>
    </tr>
    <tr valign="top">
      <td align="right">Bobot* : </td>
      <td><label> 
        <input name="bobot" type="text" id="bobot" size="10" maxlength="4" />
      persen (%) (number only) </label></td>
    </tr>
    <tr>
      <td align="right">Metode : </td>
      <td><label>
        <select name="metode" id="metode">
          <option value="0" selected="selected">Tanpa Penyusutan (No Depreciation)</option>
          <option value="1">Garis Lurus (Straight Line)</option>
        </select>
      </label></td>
    </tr>
    <tr>
      <td align="left"><label><em>*Harus diisi
        <input name="open" type="hidden" id="open" value="<?php echo $_GET['open'];?>" />
      </em></label></td>
      <td><label>
        <input name="Save" type="submit" id="Save" value="Simpan" />
        </label>
        <label>
          <input type="button" name="Button" value="Batal" onclick="javascript:<?php if($_GET['open']=='window') { ?>window.close(2000);<?php }else{ ?>history.go(-1);<?php } ?>" />
        </label></td>
    </tr>
  </table>
  <input name="id" type="hidden" id="id" />
</form>